﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Web.Mvc;

namespace eShop.Web.Admin.Models
{
    /// <summary>
    /// 仓库信息
    /// </summary>
    public class ProductsdetailsModel
    {
        public DataTable DetailList { get; set; }
        /// <summary>
        /// 标题
        /// </summary>
        //[Display(Name = "仓库编号")]
        //[Required(ErrorMessage = "编号不能为空")]
        //[StringLength(20, ErrorMessage = "编号长度不能大于20")]
        //public string StockBh { get; set; }


        //[Display(Name = "仓库名称")]
        //[Required(ErrorMessage = "名称不能为空")]
        //[StringLength(50, ErrorMessage = "名称长度不能大于50")]
        //public string StockMc { get; set; }


        [Display(Name = "件号")]
        public int sid { get; set; }
        [Display(Name = "商品编号")]
        [Required(ErrorMessage = "名称不能为空")]

        public int pid { get; set; }
        [Display(Name = "车架号")]
        [Required(ErrorMessage = "车架号不能为空")]
        [StringLength(50, ErrorMessage = "车架号长度不能大于50")]
        public string vin { get; set; }
        [Display(Name = "主机号")]
        [Required(ErrorMessage = "主机号不能为空")]
        [StringLength(50, ErrorMessage = "主机号长度不能大于50")]
        public string gde { get; set; }
        [Display(Name = "自定义1")]
        public string conf1 { get; set; }
        [Display(Name = "自定义2")]
        public string conf2 { get; set; }
        [Display(Name = "自定义3")]
        public string conf3 { get; set; }
        [Display(Name = "自定义4")]
        public string conf4 { get; set; }
        [Display(Name = "自定义5")]

        public string conf5 { get; set; }
        [Display(Name = "自定义6")]
        public string conf6 { get; set; }

        [Display(Name = "关联订单号")]
        public int? oid { get; set; }

      
        [Display(Name = "描述")]
        public string description { get; set; }

    }
}
